home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6273 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1018 b 

  1. Path: news.netam.net!alpha!bgc
  2. From: bgc@alpha.netam.net (The Bowling Green Connection)
  3. Newsgroups: comp.lang.c
  4. Subject: Getting modem status
  5. Date: 23 Feb 1996 17:05:59 GMT
  6. Organization: NetAmerica, Bowling Green, KY.
  7. Message-ID: <4gks5n$k4a@news.netam.net>
  8. NNTP-Posting-Host: alpha.netam.net
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I'm trying to use _bios_serialcom (Borland C++ 3.1) to check the status
  12. of my modem.  I want to know if the modem is hung up, or being used..
  13. The problem comes when I want to test that the modem is being used, when
  14. it really is being used...My test program, the instant the _bios_serialcom
  15. function is executed, hangs up my modem.. What's the deal?  I don't want
  16. the modem to hang up, I just want the test program to tell me the modem
  17. is in use..
  18.  
  19. The modem I'm using is on com1, and the command syntax I used is:
  20.     printf("%d\n", _bios_serialcom( _COM_STATUS, COM1, 0 ));
  21. which could be substituted by,    (      3     ,    0, 0 ),
  22. and still hangs me up.
  23.  
  24. Thanks,
  25. Eddie,
  26. bgc@bgcky.com
  27.